package com.telit.firecommand.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;


/**
 * 赛达区域、监控VO
 *
 * @author yuezhuang
 * @date 2022-09-08
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value = "SaidaDistrictTreeVO", description = "赛达区域、监控VO")
public class SaidaDistrictTreeVO implements Serializable {

    private static final long serialVersionUID = -1L;

    @ApiModelProperty(value = "type=1时，行政区域id；type=2时，监控code")
    private String id;

    @ApiModelProperty(value = "type=1时，行政区域code；type=2时，监控code", required = true)
    private String code;

    @ApiModelProperty(value = "type=1时，行政区域parentCode；type=2时，无意义")
    private String parentCode;

    @ApiModelProperty(value = "区域、监控名称")
    private String name;

    @ApiModelProperty(value = "类型：1-行政区划 2-监控信息", required = true)
    private Integer type;

    @ApiModelProperty(value = "监控类型 1防火 2卡口")
    private Integer cameraType;

    @ApiModelProperty(value = "监控数量统计，当前区域，而且包含下级")
    private Integer num;

    @ApiModelProperty(value = "在线状态 1在线  0离线")
    private Integer online;

    @ApiModelProperty(value = "行政区域列表和监控列表，通过type字段进行区分")
    private List<SaidaDistrictTreeVO> children;

}
